package com.linux.dataacess.db.model;

public class LinuxContent {
    private Integer cId;

    private String cmdValue;

    private String cmdDesc;

    private String cmdSummary;

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getCmdValue() {
        return cmdValue;
    }

    public void setCmdValue(String cmdValue) {
        this.cmdValue = cmdValue == null ? null : cmdValue.trim();
    }

    public String getCmdDesc() {
        return cmdDesc;
    }

    public void setCmdDesc(String cmdDesc) {
        this.cmdDesc = cmdDesc == null ? null : cmdDesc.trim();
    }

    public String getCmdSummary() {
        return cmdSummary;
    }

    public void setCmdSummary(String cmdSummary) {
        this.cmdSummary = cmdSummary == null ? null : cmdSummary.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LinuxContent other = (LinuxContent) that;
        return (this.getcId() == null ? other.getcId() == null : this.getcId().equals(other.getcId()))
            && (this.getCmdValue() == null ? other.getCmdValue() == null : this.getCmdValue().equals(other.getCmdValue()))
            && (this.getCmdDesc() == null ? other.getCmdDesc() == null : this.getCmdDesc().equals(other.getCmdDesc()))
            && (this.getCmdSummary() == null ? other.getCmdSummary() == null : this.getCmdSummary().equals(other.getCmdSummary()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getcId() == null) ? 0 : getcId().hashCode());
        result = prime * result + ((getCmdValue() == null) ? 0 : getCmdValue().hashCode());
        result = prime * result + ((getCmdDesc() == null) ? 0 : getCmdDesc().hashCode());
        result = prime * result + ((getCmdSummary() == null) ? 0 : getCmdSummary().hashCode());
        return result;
    }
}